package com.ucpaas.monitor.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.ucpaas.monitor.service.MonitorService;

@Component
public class MonitorSchedulerTask {
	private static final Logger logger = LoggerFactory.getLogger(MonitorSchedulerTask.class);

	@Autowired
    private MonitorService monitorService;
	
    @Scheduled(cron="0 0/1 * * * ?")
    private void process(){
         try {
    //		monitorService.getRemoteVM();
             logger.info("I am do something......");
        } catch (Exception e) {
            e.printStackTrace();
            logger.info("===========================Execute Remote Monitor Exception !!!==================================={}",e);
        }


    }

}